package com.zy.service.impl;

import com.zy.dao.GetOrdersDao;
import com.zy.dao.impl.GetOrdersDaoImpl;
import com.zy.entity.Order;
import com.zy.service.GetOrdersService;

import java.util.List;

public class GetOrdersServiceImpl implements GetOrdersService {
    private GetOrdersDao getOrdersDao = new GetOrdersDaoImpl();

    @Override
    public List<Order> getOrders(int offset, int limit) {
        return getOrdersDao.getOrders(offset, limit);
    }
} 